const videoData = [
    {
        id:'1',
        url:'../xcsc_dev/src/assets/homeLmage/cs3.mp4'
    },
    {
        id:'2',
        url:'../xcsc_dev/src/assets/homeLmage/fj2.mp4'
    },
    {
        id:'3',
        url:'../xcsc_dev/src/assets/homeLmage/ht4.mp4'
    },
    {
        id:'4',
        url:'../xcsc_dev/src/assets/homeLmage/cs3.mp4'
    },
    {
        id:'5',
        url:'../xcsc_dev/src/assets/homeLmage/fj2.mp4'
    },
    {
        id:'6',
        url:'../xcsc_dev/src/assets/homeLmage/ht4.mp4'
    },
    {
        id:'7',
        url:'../xcsc_dev/src/assets/homeLmage/cs3.mp4'
    },
]
function createVideo(){
    var videoValue = document.getElementById('videoValue')
    for(var i=0;i<videoData.length;i++){
        var newDiv = document.createElement('div')
        newDiv.className = 'videoShow'
        newDiv.innerHTML = `<video src="${videoData[i].url}" style="width:100%;" controls></video>`
        videoValue.appendChild(newDiv,videoValue.firstElementChild)
    }
}
createVideo()